#ifndef PEOPLE_H
#define PEOPLE_H

#include <string>

class People
{
public:
    enum SEX {
        MAN = 0,
        WOMAN,
        UNKONW
    };

    explicit People(std::string name, SEX sex, double weight, double height, std::string appearance);
    ~People();

    bool operator < (const People& b);
    bool operator == (const People& b);

    double weight() const;
    void setWeight(double weight);

    double height() const;
    void setHeight(double height);

    SEX sex() const;
    void setSex(const SEX &sex);

    std::string name() const;
    void setName(const std::string &name);

    std::string appearance() const;
    void setAppearance(const std::string &appearance);

    std::string show_me();

    int age() const;
    void setAge(int age);

private:
    double m_weight;            /// 体重
    double m_height;            /// 身高
    int    m_age;               /// 年龄
    SEX    m_sex;               /// 0:M(男), 1:F(女)
    std::string m_name;         /// 姓名
    std::string m_appearance;   /// 外貌
};

#endif // PEOPLE_H
